home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-12-14 | 2.4 KB | 23 lines | [TEXT/R*ch] |
- # Module 'gwin'
- # Generic stdwin windows
-
- # This is used as a base class from which to derive other window types.
- # XXX DON'T USE THIS CODE ANY MORE! It is ages old!
-
- import stdwin, stdwinq
- from stdwinevents import *
- from mainloop import mainloop, register, unregister, windows
-
- # Open a window
-
- def open(title): # Open a generic window
- w = stdwin.open(title)
- stdwin.setdefwinsize(0, 0)
- # Set default event handlers
- w.draw = nop
- w.char = nop
- w.mdown = nop
- w.mmove = nop
- w.mup = nop
- w.m2down = m2down